package bill.study.enums.effectivejava.item32;

import java.util.EnumSet;

import bill.study.enums.effectivejava.item32.Text.Style;

public class UseEnumSet {
	public static void main(String [] args){
		Text text = new Text();
		text.applyStyles(EnumSet.of(Style.BOLD, Style.ITALIC));
		
		text .applyStyles(EnumSet.allOf(Style.class));
		text .applyStyles(EnumSet.complementOf(EnumSet.of(Style.ITALIC)));
	}

}
